import { createRequest } from "@/utils";

const request = createRequest({
	baseUrl: import.meta.env.VITE_RDS_PlATFORM,
});

/**
 * 登录
 * @param params
 * @returns
 */

export const login = async (params: any) => {
	return request.post(`/sso/login`, params, {
		headers: {
			"Content-Type": "application/x-www-form-urlencoded",
		},
	});
};
